package frame.system.to;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

import frame.base.BaseTo;

/**
 * 对应表：sys_conf_param
 * <br>
 * @author PeiWentao
 * @since 2020-10-01 23:13
 */
@Table(name = "sys_conf_param")
public class ConfParam extends BaseTo<String> {
	@Id
    /** id*/
    private String id;

	/** 开关名称*/
	@NotBlank(message = "参数名称不能为空")
	private String name;
	/** int值*/
	private Integer intVal;
	/** duble值*/
	private Double douVal;
	/** string值*/
	private String strVal;

  	public ConfParam() {
	}
	public ConfParam(String id) {
		this.id = id;
	}
  	public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
	public String getName() {
		return name;
	}
	public ConfParam setName(String name) {
		this.name = name;
		return this;
	}
	public Integer getIntVal() {
		return intVal;
	}
	public ConfParam setIntVal(Integer intVal) {
		this.intVal = intVal;
		return this;
	}
	public Double getDouVal() {
		return douVal;
	}
	public ConfParam setDouVal(Double douVal) {
		this.douVal = douVal;
		return this;
	}
	public String getStrVal() {
		return strVal;
	}
	public ConfParam setStrVal(String strVal) {
		this.strVal = strVal;
		return this;
	}

}
